<div style="width:100%; height:50px;">
	<div style="float:left; width:35%;">
		<div style="padding:10px 5px 10px 20px; float:left;">
			<?php
				$sql = "select filename from ms_file where stsrc = 'A' and filerole = 'favicon' order by dateup desc, datein desc limit 0,1";
				$exe = mysql_query($sql) or die(mysql_error());
				$num = mysql_num_rows($exe);
				$row = mysql_fetch_array($exe);
				
				if($num > 0)
				{
			?>
					<img src="<?php echo getURLdomain()."/upload/".$row['filename'];?>" style="max-width:18px; max-height:18px;" />
			<?php
				}
				else
				{
			?>
					<img src="<?php echo PATH_FAVICON;?>" />
			<?php
				}
			?>
		</div>
		<div style="padding:10px 0px 10px 0px; text-align:left; float:left;">
			<span><?php echo "Welcome, <i>".$_SESSION['username']."</i>"; ?></span>
			<a title="Change Password" id="cpass" href="<?php echo URL_HOME_SITE_ADMIN; ?>/action/act_password_edit.php#<?php echo $_SESSION['username']; ?>" class="nyroModal">&nbsp;</a>
		</div>
	</div>
	<div style="float:left; width:30%;">
		<div style="padding:10px 20px 10px 20px; width:100%; text-align:center;">
			<span><?php echo strtoupper(SITE_NAME); ?></span>
		</div>
	</div>
	<div style="float:left; width:35%;">
		<div style="padding:10px 20px 10px 0px; text-align:right; float:right;">
			<a title="Logout" id="logout" href="<?php echo URL_HOME_SITE_ADMIN; ?>/logout.php">&nbsp;</a>
		</div>
		<div style="padding:10px 0px 10px 0px; text-align:right; float:right;">
			<span id="theTime"></span>
		</div>
		
	</div>
	
</div>
